/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fallen.deck.entity;

/**
 *
 * @author MotorolaUTN
 */
public class Pathway {
    
    private String name, primaryColor, secondColor, description;
    private long id;

    /**
     * @return the id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(long id) {
        this.id = id;
    }

    public Pathway()
    {
    }

    public Pathway(String name)
    {
        this.name = name;
    }

    public Pathway (String name, String pColor, String sColor, String description)
    {
        this.name = name;
        primaryColor = pColor;
        secondColor = sColor;
        this.description = description;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the primaryColor
     */
    public String getPrimaryColor() {
        return primaryColor;
    }

    /**
     * @param primaryColor the primaryColor to set
     */
    public void setPrimaryColor(String primaryColor) {
        this.primaryColor = primaryColor;
    }

    /**
     * @return the sencondColor
     */
    public String getSecondColor() {
        return secondColor;
    }

    /**
     * @param sencondColor the sencondColor to set
     */
    public void setSecondColor(String sencondColor) {
        this.secondColor = sencondColor;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
     public int compareTo(Object o) {
        if (!(o instanceof Pathway)) {
            return -1;
        }
        return ((Pathway) o).getName().compareTo(name);
    }

    public String toString()
    {
        return name;
    }

}
